import { NestFactory } from '@nestjs/core';
import { Transport } from '@nestjs/microservices';
import { Logger } from '@nestjs/common';
import { FileModule } from './file/file.module';

async function bootstrap() {
  const app = await NestFactory.createMicroservice(FileModule, {
    transport: Transport.TCP,
    // port: 30030,
  });

  app.listen(() => {
    Logger.log('file service start', 'file-analyze');
  });
}
bootstrap();
